// 5.15 Input Data Validation

#include <stdio.h>
int main()
{
#define TRUE 1
    int month;

    while (TRUE)
    {
        printf("\nEnter a month between 1 and 12: ");
        scanf("%d", &month);

        if (month > 0 && month < 13)
            break;
        printf("Error - the month you entered is not valid.\n");
    }

    printf("The month accepted is %d\n", month);

    return 0;
}